package cn.yl.ad.server.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Getter
@Setter
@Accessors(chain = true)
@TableName("promotion_ad")
@ApiModel(value = "PromotionAd对象", description = "广告表")
public class PromotionAdDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("广告名")
    @TableField("name")
    private String name;

    @ApiModelProperty("广告位id")
    @TableField("space_id")
    private Integer spaceId;

    @ApiModelProperty("精确搜索关键词")
    @TableField("keyword")
    private String keyword;

    @ApiModelProperty("静态广告的内容")
    @TableField("html_content")
    private String htmlContent;

    @ApiModelProperty("文字一")
    @TableField("text")
    private String text;

    @ApiModelProperty("链接一")
    @TableField("link")
    private String link;

    @ApiModelProperty("开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @TableField("status")
    private Integer status;

    @ApiModelProperty("优先级")
    @TableField("priority")
    private Integer priority;

    @TableField("img")
    private String img;
}
